<template>
    <div class="staticElectricity">
        <div class="boxTitle">
            <img src="@/assets/images/home/rightIcon.png" alt="">
            <span class="title">上网静电量趋势</span>
        </div>
        <lineChart1 :data="chartData.data"></lineChart1>
    </div>
</template>

<script setup lang="ts">
import lineChart1 from '../components/lineChart1.vue';
const chartData = reactive({
    data: [
        { date: '1', value: 50 },
        { date: '2', value: 210 },
        { date: '3', value: 200 },
        { date: '4', value: 150 },
        { date: '5', value: 130 },
        { date: '6', value: 160 },
        { date: '7', value: 100 },
        { date: '8', value: 120 },
        { date: '9', value: 130 },
        { date: '10', value: 110 },
        { date: '11', value: 120 },
        { date: '12', value: 30 },
    ] as any
})
</script>

<style lang="scss" scoped>
.staticElectricity {
    transition: transform 0.5s ease;
    position: absolute;
    background-size: 100% 100%;
    z-index: 999;
    padding-left: vh(21);
    padding-right: vh(21);
    background: url(@/assets/images/home/right2.png) no-repeat;
    background-size: 100% 100%;
    right: vw(21);
    bottom: vh(60);
    width: vh(421);
    height: vh(252);

    .boxTitle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: vh(8);

        .title {
            margin-left: vh(6);
            font-family: Source Han Sans CN;
            font-weight: 500;
            font-size: vh(16);
            color: #00E3FE;
            line-height: vh(16);
        }

        img {
            width: vh(16);
            height: vh(14);
        }
    }
}
</style>